<template>
  <el-row>
    <el-form label-position="left" label-width="120px">
      <el-col :span="24">
        <service-header :id="id" :orderId="orderId" :detail="detail">
          <div slot="tools"><slot name="tools"></slot></div>
        </service-header>
        <!-- 评价or评价详情 -->
        <div v-if="flag === 'confirming'">
          <evaluation :id="id" :orderId="orderId"></evaluation>
        </div>
        <div v-if="flag === 'completed'">
          <evaluation-detail :id="id"></evaluation-detail>
        </div>
        <logistics-node :orderId="orderId"></logistics-node>
      </el-col>
    </el-form>
  </el-row>
</template>
<script>
import serviceHeader from '@/views/oms/orders/expatriate/detail/ServiceHeader'
import evaluation from '@/views/oms/orders/expatriate/detail/Evaluation'
import evaluationDetail from '@/views/oms/orders/expatriate/detail/EvaluationDetail'
import logisticsNode from '@/views/oms/orders/expatriate/detail/LogisticsNode'
export default {
  components: {
    serviceHeader,
    evaluation,
    evaluationDetail,
    logisticsNode
  },
  props: {
    id: {
      type: String,
      required: true
    },
    orderId: {
      type: String,
      required: true
    },
    detail: {
      type: Object,
      default() {
        return {}
      }
    },
    flag: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
    }
  },
  created() {
  }
}
</script>
